<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8"/>
    <title>Vue示例</title>

</head>

<body>
<div id="app">
    <p v-if="show">这是一段文本</p>
    <button v-on:click="show=false">点击隐藏</button>
</div>
<script charset="utf-8" src="../js/vue.min.js" type="text/javascript"></script>
<script type="text/javascript">
    new Vue({
        el: '#app',
        data: {
            show: true,
        }
    })
</script>
</body>

</html>
